package com.sangeng.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.sangeng.domain.ResponseResult;
import com.sangeng.domain.entity.Comment;


/**
 * 评论表(Comment)表服务接口
 *
 * @author makejava
 * @since 2023-10-03 15:20:43
 */
public interface CommentService extends IService<Comment> {
    /**
     * 分页查询对应文章所有的评论
     *
     * @param commentType
     * @param articleId
     * @param pageNum
     * @param pageSize
     * @return
     */

    ResponseResult commentList(String commentType, Long articleId, Integer pageNum, Integer pageSize);
    /**
     * 发表评论
     * @param comment
     * @return
     */

    ResponseResult addComment(Comment comment);
}
